<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition>

		<p:outputPanel style="text-align:center;">
			<p:panelGrid style="width: 100%;">
				<f:facet name="header">
					<p:row>
						<p:column>
							<h:outputText value="Project/Department" />
						</p:column>
						<p:column>
							<h:outputText value="Purpose" />
						</p:column>
					</p:row>
				</f:facet>
				<p:row>
					<p:column style="width:25%;">
						<h:outputText value="#{userSession.selectedProject.displayString}" />
					</p:column>
					<p:column style="width:75%">
						<p:inputText id="description"
							value="#{dtPurchaseRequisitionView.description}"
							required="true" requiredMessage="Description is mandatory!"
							maxlength="255"
							style="width: 95%" />
						<br />
						<p:message for="description" />
					</p:column>
				</p:row>

			</p:panelGrid>

			<br />
			<p:commandButton value="Create Purchase Requisition ..."
				update="@form" action="#{dtPurchaseRequisitionView.create}" />

		</p:outputPanel>

	</ui:composition>
</body>
</html>